package cn.timeapi.Applet.Mall.CatSquare.dao;

import cn.timeapi.Applet.Mall.CatSquare.entity.ManagementAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManagementAccountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ManagementAccount record);

    ManagementAccount selectByPrimaryKey(Integer id);

    List<ManagementAccount> selectAll();

    ManagementAccount selectByPhone(String phone);

    int updateByPrimaryKey(ManagementAccount record);

    int updateByPhone(@Param("oldPhone") String oldPhone,@Param("newPhone") String newPhone);

    int checkPhone(String phone);

    ManagementAccount selectLogin(@Param("phone") String phone, @Param("md5password") String md5password);

}